package com.ourteam.education.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-09-22 15:15:29
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class ClassDefineBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.education.dao.ClassDefine classDefine;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(classDefine);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.education.dao.IClassDefineDAO.Id);
		
																																																														
				
																
				
																
				
																
				
																
		mappedDaoFields.put("campusId",com.ourteam.education.dao.IClassDefineDAO.CampusId);
		
																																																										
				
																
				
																
				
																
				
																				
		mappedDaoFields.put("courseId",com.ourteam.education.dao.IClassDefineDAO.CourseId);
		
																																																						
				
																
				
																
				
																
				
																								
		mappedDaoFields.put("className",com.ourteam.education.dao.IClassDefineDAO.ClassName);
		
																																																		
				
																
				
																
				
																
				
																												
		mappedDaoFields.put("fullClassNumber",com.ourteam.education.dao.IClassDefineDAO.FullClassNumber);
		
																																														
				
																
				
																
				
																
				
																																
		mappedDaoFields.put("minClassNumber",com.ourteam.education.dao.IClassDefineDAO.MinClassNumber);
		
																																										
				
																
				
																
				
																
				
																																				
		mappedDaoFields.put("enrollmentStatus",com.ourteam.education.dao.IClassDefineDAO.EnrollmentStatus);
		
																																						
				
																
				
																
				
																
				
																																								
		mappedDaoFields.put("classRoomId",com.ourteam.education.dao.IClassDefineDAO.ClassRoomId);
		
																																		
				
																
				
																
				
																
				
																																												
		mappedDaoFields.put("startClassDate",com.ourteam.education.dao.IClassDefineDAO.StartClassDate);
		
																														
				
																
				
																
				
																
				
																																																
		mappedDaoFields.put("endClassDate",com.ourteam.education.dao.IClassDefineDAO.EndClassDate);
		
																										
				
																
				
																
				
																
				
																																																				
		mappedDaoFields.put("studentClassHour",com.ourteam.education.dao.IClassDefineDAO.StudentClassHour);
		
																						
				
																
				
																
				
																
				
																																																								
		mappedDaoFields.put("teacherClassHour",com.ourteam.education.dao.IClassDefineDAO.TeacherClassHour);
		
																		
				
																
				
																
				
																
				
																																																												
		mappedDaoFields.put("deleteFlag",com.ourteam.education.dao.IClassDefineDAO.DeleteFlag);
		
														
				
																
				
																
				
																
				
																																																																
		mappedDaoFields.put("status",com.ourteam.education.dao.IClassDefineDAO.Status);
		
										
				
																
				
																
				
																
				
																																																																				
		mappedDaoFields.put("remarks",com.ourteam.education.dao.IClassDefineDAO.Remarks);
		
						
				
																
				
																
				
																
				
																																																																		
				
										
		mappedDaoFields.put("campusName",com.ourteam.education.dao.IClassDefineDAO.CampusName);
								
				
																
				
																
				
																																																																		
				
																
				
										
		mappedDaoFields.put("courseName",com.ourteam.education.dao.IClassDefineDAO.CourseName);
								
				
																
				
																																																																		
				
																
				
																
				
										
		mappedDaoFields.put("classroomName",com.ourteam.education.dao.IClassDefineDAO.ClassroomName);
								
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public ClassDefineBean() {
		super();
	    		
		this.classDefine = new com.ourteam.education.dao.ClassDefine();
                
	}
	
		
	public ClassDefineBean(com.ourteam.education.dao.ClassDefine classDefine) {
		super();
	
		this.classDefine = classDefine;
		
	}
		
		
		
    	
	public com.ourteam.education.dao.ClassDefine convertToClassDefine(){
		return this.classDefine;
	}
	
	public com.ourteam.education.dao.ClassDefine convertTo(){
		return this.classDefine;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.classDefine.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.classDefine.setId(id);
	}
		
																															
			
									
			
									
			
									
		
		
					
			
		
	/**
	 * Get campusId
	 * 
	 * @return long
	 */
	public long getCampusId(){
		return (long) this.classDefine.getCampusId();
	}
	
	/**
	 * Set campusId
	 * 
	 * @parameter long
	 */
	public void setCampusId(long campusId){
		
		this.classDefine.setCampusId(campusId);
	}
		
																													
			
									
			
									
			
									
		
		
							
			
		
	/**
	 * Get courseId
	 * 
	 * @return long
	 */
	public long getCourseId(){
		return (long) this.classDefine.getCourseId();
	}
	
	/**
	 * Set courseId
	 * 
	 * @parameter long
	 */
	public void setCourseId(long courseId){
		
		this.classDefine.setCourseId(courseId);
	}
		
																											
			
									
			
									
			
									
		
		
									
			
		
	/**
	 * Get className
	 * 
	 * @return String
	 */
	public String getClassName(){
		return (String) this.classDefine.getClassName();
	}
	
	/**
	 * Set className
	 * 
	 * @parameter String
	 */
	public void setClassName(String className){
		
		this.classDefine.setClassName(className);
	}
		
																									
			
									
			
									
			
									
		
		
											
			
		
	/**
	 * Get fullClassNumber
	 * 
	 * @return long
	 */
	public long getFullClassNumber(){
		return (long) this.classDefine.getFullClassNumber();
	}
	
	/**
	 * Set fullClassNumber
	 * 
	 * @parameter long
	 */
	public void setFullClassNumber(long fullClassNumber){
		
		this.classDefine.setFullClassNumber(fullClassNumber);
	}
		
																							
			
									
			
									
			
									
		
		
													
			
		
	/**
	 * Get minClassNumber
	 * 
	 * @return long
	 */
	public long getMinClassNumber(){
		return (long) this.classDefine.getMinClassNumber();
	}
	
	/**
	 * Set minClassNumber
	 * 
	 * @parameter long
	 */
	public void setMinClassNumber(long minClassNumber){
		
		this.classDefine.setMinClassNumber(minClassNumber);
	}
		
																					
			
									
			
									
			
									
		
		
															
			
		
	/**
	 * Get enrollmentStatus
	 * 
	 * @return String
	 */
	public String getEnrollmentStatus(){
		return (String) this.classDefine.getEnrollmentStatus();
	}
	
	/**
	 * Set enrollmentStatus
	 * 
	 * @parameter String
	 */
	public void setEnrollmentStatus(String enrollmentStatus){
		
		this.classDefine.setEnrollmentStatus(enrollmentStatus);
	}
		
																			
			
									
			
									
			
									
		
		
																	
			
		
	/**
	 * Get classRoomId
	 * 
	 * @return long
	 */
	public long getClassRoomId(){
		return (long) this.classDefine.getClassRoomId();
	}
	
	/**
	 * Set classRoomId
	 * 
	 * @parameter long
	 */
	public void setClassRoomId(long classRoomId){
		
		this.classDefine.setClassRoomId(classRoomId);
	}
		
																	
			
									
			
									
			
									
		
		
																			
			
		
	/**
	 * Get startClassDate
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getStartClassDate(){
		return (java.util.Date) this.classDefine.getStartClassDate();
	}
	
	/**
	 * Set startClassDate
	 * 
	 * @parameter java.util.Date
	 */
	public void setStartClassDate(java.util.Date startClassDate){
		
		this.classDefine.setStartClassDate(startClassDate);
	}
		
															
			
									
			
									
			
									
		
		
																					
			
		
	/**
	 * Get endClassDate
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getEndClassDate(){
		return (java.util.Date) this.classDefine.getEndClassDate();
	}
	
	/**
	 * Set endClassDate
	 * 
	 * @parameter java.util.Date
	 */
	public void setEndClassDate(java.util.Date endClassDate){
		
		this.classDefine.setEndClassDate(endClassDate);
	}
		
													
			
									
			
									
			
									
		
		
																							
			
		
	/**
	 * Get studentClassHour
	 * 
	 * @return long
	 */
	public long getStudentClassHour(){
		return (long) this.classDefine.getStudentClassHour();
	}
	
	/**
	 * Set studentClassHour
	 * 
	 * @parameter long
	 */
	public void setStudentClassHour(long studentClassHour){
		
		this.classDefine.setStudentClassHour(studentClassHour);
	}
		
											
			
									
			
									
			
									
		
		
																									
			
		
	/**
	 * Get teacherClassHour
	 * 
	 * @return long
	 */
	public long getTeacherClassHour(){
		return (long) this.classDefine.getTeacherClassHour();
	}
	
	/**
	 * Set teacherClassHour
	 * 
	 * @parameter long
	 */
	public void setTeacherClassHour(long teacherClassHour){
		
		this.classDefine.setTeacherClassHour(teacherClassHour);
	}
		
									
			
									
			
									
			
									
		
		
																											
			
		
	/**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	public int getDeleteFlag(){
		return (int) this.classDefine.getDeleteFlag();
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @parameter int
	 */
	public void setDeleteFlag(int deleteFlag){
		
		this.classDefine.setDeleteFlag(deleteFlag);
	}
		
							
			
									
			
									
			
									
		
		
																													
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.classDefine.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.classDefine.setStatus(status);
	}
		
					
			
									
			
									
			
									
		
		
																															
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.classDefine.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.classDefine.setRemarks(remarks);
	}
		
			
			
									
			
									
			
									
		
		
																																
			
					
			
		
	/**
	 * Get campusName
	 * 
	 * @return String
	 */
	public String getCampusName(){
		
		return (String) this.classDefine.getCampusName();
			
	}
	
					
			
									
			
									
		
		
																																
			
									
			
					
			
		
	/**
	 * Get courseName
	 * 
	 * @return String
	 */
	public String getCourseName(){
		
		return (String) this.classDefine.getCourseName();
			
	}
	
					
			
									
		
		
																																
			
									
			
									
			
					
			
		
	/**
	 * Get classroomName
	 * 
	 * @return String
	 */
	public String getClassroomName(){
		
		return (String) this.classDefine.getClassroomName();
			
	}
	
					
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof ClassDefineBean) == false) {
            return false;
        } // end if

        ClassDefineBean other = (ClassDefineBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.education.dao.ClassDefine tempClassDefine = other.convertToClassDefine();
        
        if(tempClassDefine == null || this.classDefine == null){
        	isEqual = false;
        }
        else if(tempClassDefine == this.classDefine || tempClassDefine.equals(this.classDefine) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static ClassDefineBean[] toArray(com.ourteam.education.dao.ClassDefine[] aClassDefines){
		
		return toArray(aClassDefines,null);
	}
	
	public static ClassDefineBean[] toArray(com.ourteam.education.dao.ClassDefine[] aClassDefines , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aClassDefines)){
		 	return new ClassDefineBean[0];
		 }
		 
		 int length = aClassDefines.length;
		 
		 ClassDefineBean[] beans = new ClassDefineBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new ClassDefineBean(aClassDefines[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aClassDefines[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}